package middlewars

import (
	"net/http"

	"github.com/zeromicro/go-zero/rest"
)

func DemoMiddleware() rest.Middleware {
	return func(next http.HandlerFunc) http.HandlerFunc {
		return func(w http.ResponseWriter, r *http.Request) {
			w.Header().Set("demo", "demp")
			next(w, r)
		}
	}
}
